package com.ryskoo.permission.rolepermissionrel.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "PMS_ROLE_PERMISSION_REL")
public class RolePermissionRelPO extends BasicPO {
    private static final long serialVersionUID = 3163662985032624371L;
    /**
     * 角色ID
     */
    @Column(name = "role_id", columnDefinition = "char", length = 32, nullable = false)
    private String roleId;
    /**
     * 权限ID
     */
    @Column(name = "permission_id", columnDefinition = "char", length = 32, nullable = false)
    private String permissionId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId;
    }

    @Override
    public String toString() {
        return new StringBuffer(super.toString())
                .append("RolePermissionRelPO [roleId=").append(roleId)
                .append(", permissionId=").append(permissionId).toString();
    }

}
